<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
    
  <fmt:setBundle basename="ApplicationMessage" />
  <fmt:setLocale value="zh_CN" />

<div class="modal-dialog demo2do-modal-dialog">

  <div class="modal-content">

    <div class="modal-header earth-breadcrumb no-bottom-border clearfix">

      <h2><i class="glyphicon glyphicon-fire" title=""></i>&nbsp;&nbsp;<span>所有订单&nbsp;-&nbsp;过滤查询</span></h2>

      <button type="button" class="close" data-dismiss="modal">&times;</button>

    </div>

    <form class="form-horizontal" method="GET" action="${ctx}/orders/all/search">

      <input type="hidden" name="filter" value="true" >

			<div class="modal-body">

				<div class="form-group demo2do-form-group">

					<label class="col-xs-4 control-label">订单号</label>

					<div class="col-xs-5">
						<input type="text" class="form-control" name="orderNo" />
					</div>

				</div>

				<div class="form-group demo2do-form-group">

					<label class="col-xs-4 control-label">租约号</label>

					<div class="col-xs-5">
						<input type="text" class="form-control" name="contractNo" />
					</div>

				</div>

				<div class="form-group demo2do-form-group">

					<label class="col-xs-4 control-label">订单状态</label>
					<div class="col-xs-5">
						<select name="orderStatus" class="form-control">
							<option value=""></option>
							<c:forEach var="item" items="${OrderStatus}">
								<option value="${item.ordinal() }"><fmt:message
										key="${item.key}" /></option>
							</c:forEach>
						</select>
					</div>

				</div>
				
				<div class="form-group demo2do-form-group">

          <label class="col-xs-4 control-label">商户</label>
          <div class="col-xs-5">
            <select name="app" class="form-control">
              <option value=""></option>
              <c:forEach var="item" items="${appList}">
                <option value="${item.id }">${item.name }</option>
              </c:forEach>
            </select>
          </div>

        </div>

				<div class="form-group demo2do-form-group">

					<label class="col-xs-4 control-label">应付日期</label>
					<div class="col-xs-5">
						<div class="input-group" id="dueDate">
							<input type="date" class="input-sm form-control input-date"
								name="startDate"/> <span
								class="input-group-addon">至</span> <input type="date"
								class="input-sm form-control input-date" name="endDate"/>
						</div>
					</div>
					
				</div>

			</div>

			<div class="modal-footer">
        <button type="submit" class="btn btn-success btn-shadow btn-shadow-success demo2do-btn">查询</button>&nbsp;&nbsp;&nbsp;&nbsp;
        <button type="button" class="btn btn-default btn-shadow btn-shadow-default demo2do-btn" data-dismiss="modal">取消</button>
      </div>

    </form>

  </div>

</div>

<script type="text/javascript">

  $(document).ready(function() {

  $('.select-select2').select2({
      minimumInputLength: -1,
    });
      
  });

</script>
